package work.day07work;

import java.util.Date;

public class Test03 {
    public static void main(String[] args) {
        new Thread(()->{
           while (true){
               try {
                   Thread.sleep(1000);
                   Date now = new Date();
                   System.out.println(now);

               }catch (InterruptedException e){
                   e.printStackTrace();
               }
           }
        }).start();
    }
}
